package uniandes.cupi2.sit.interfaz;

import javax.swing.JScrollPane;
import java.awt.Dimension;
import java.util.ArrayList;

import javax.swing.JList;

public class panelInfo extends JScrollPane {

	private static final long serialVersionUID = 1L;
	private JList jList = null;

	/**
	 * This is the default constructor
	 */
	public panelInfo() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(224, 200);

		this.setViewportView(getJList());
	}

	/**
	 * This method initializes jList	
	 * 	
	 * @return javax.swing.JList	
	 */
	private JList getJList() {
		if (jList == null) {
			jList = new JList();
		}
		return jList;
	}
	
	public void anadirALista(ArrayList rutas)
	{
		jList.setListData(rutas.toArray());
	}
	
	

}  //  @jve:decl-index=0:visual-constraint="10,10"
